package com.samba.util;

final public class StringUtil {
    
    private StringUtil() {}
    
    public static String createRandomString(int length) {
        String strAvailable = "azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN1234567890";
        String randomStr = "";
        for (int i = 0; i < length; i++) {
            int pos = (int) (Math.random() * 100) % (strAvailable.length());
            randomStr += strAvailable.charAt(pos);
        }
        
        return randomStr;
    }
    
}
